package cn.edu.scujcc.customofsichuan;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Second_ezj extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second_ezj);
        Toolbar back = findViewById(R.id.back_secondPage_ezj);
        back.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        View ezj_history = findViewById(R.id.ezj_history);
        View ezj_activity = findViewById(R.id.ezj_activity);
        View ezj_protect = findViewById(R.id.ezj_protect);
        Intent intent=new Intent(this,thirdPage_Detail.class);
        Bundle bundle=new Bundle();


        ezj_history.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","瓦尔俄足节历史渊源");
                bundle.putString("webUrl","file:///android_asset/ezj_history.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });

        ezj_activity.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","瓦尔俄足节活动");
                bundle.putString("webUrl","file:///android_asset/ezj_activity.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });

        ezj_protect.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","瓦尔俄足节传承保护");
                bundle.putString("webUrl","file:///android_asset/ezj_protect.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });
    }
}